import 'package:common_utils/common_utils.dart';
import 'package:get/get.dart';
import 'package:psi/entity/sales_entity.dart';

enum SalesType {
  add,
  detail
}

class SalesAddState {

  var sales = SalesEntity().obs;
  var recentNames = [].obs;
  var count = 3.obs;
  var type = SalesType.add;
  var isEdit = false.obs;

  SalesAddState() {
    ///Initialize variables
    sales.value.recordTime = DateUtil.formatDate(DateTime.now(), format: "yyyy-MM-dd HH:mm:ss");
    sales.value.itemList = [SalesItem()];
  }
}
